package cqie.frame.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (Course)表实体类
 *
 * @author makejava
 * @since 2021-09-27 21:13:20
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course")
@ApiModel(description = "课程表")
public class Course extends Model<Course> {
    //课程ID
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "课程ID")
    private Long id;
    //课程代码
    @TableField(value = "code")
    @ApiModelProperty(value = "课程代码")
    private String code;
    //课程名称
    @TableField(value = "name")
    @ApiModelProperty(value = "班级名称")
    private String name;
    //课程状态 0：正常 1：禁用
    @TableField(value = "status")
    @ApiModelProperty(value = "课程状态")
    private Integer status;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

